<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>Off Canvas Template for Bootstrap</title>

    <!-- Bootstrap core CSS -->
    <link href="Home/View/assets/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="Home/View/assets/css/offcanvas.css" rel="stylesheet">
    <link href="Home/View/assets/css/style.css" rel="stylesheet">
    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]>
    <script src="assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="Home/View/assets/js/ie-emulation-modes-warning.js"></script>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>
<nav class="navbar navbar-fixed-top navbar-inverse">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
    </div>
    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li><a href="index.php">首页 <span class="sr-only">(current)</span></a></li>
        <?php foreach ($getVideoType as $one) {
            echo '<li><a href="index.php?c=list&m=index&id='.$one['tid'].'">'.$one['typename'].'</a></li>';
        } ?>
      </ul>
 <!--      <form class="navbar-form navbar-left" role="search" action="search.php">
        <div class="form-group">
          <input type="text" class="form-control" placeholder="search">
        </div>
        <button type="submit" class="btn btn-default">搜索</button>
      </form> -->
      <ul class="nav navbar-nav navbar-right">
        <li><a href="Home/View/index/login.html" data-toggle="modal" data-target="#myModal1">登录</a></li>
        <li><a href="http://localhost/caipuwang/Uers/admin.php?c=user&m=form" >注册</a></li> 
      <!-- Button trigger modal  模态框-->
      <button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">注册</button>
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>


<form  method="post" class="form-horizontal" action="Admin/admin.php?c=user&m=add" enctype="multipart/form-data" >
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">注册</h4>
      </div>
      <div class="modal-body">
      <!-- body里的东西 -->
       <div class="container">
      <div class="row">
        <!-- //这里添加代码 -->
        <h1>用户注册</h1>
        
          <div class="form-group">
            <label for="username" class="col-md-2 col-xs-3 control-label">用户名：</label>
            <div class="col-md-3 col-xs-2">
            <input name="username" type="text" class="form-control" id="username"  placeholder="用户名" required>
            </div>
          </div>
          <div class="form-group">
            <label class="col-md-2 col-xs-3 control-label" for="password">密码：</label>
            <div class="col-md-3 col-xs-2">
            <input name="password" type="password" class="form-control" id="password" placeholder="密码" required>
            </div>
          </div>
          <div class="form-group">
            <label class="col-md-2 col-xs-3 control-label" for="gender">性别：</label>
            <div class="col-md-3 col-xs-2">
              <label class="radio-inline">
                <input name="gender" type="radio" value="0" id="gender" checked>男
              </label>
              <label class="radio-inline">
                <input name="gender" type="radio" value="0" id="gender" checked>女
              </label>
            </div>
          </div>
          <div class="form-group">
            <label for="birthdate" class="col-md-2 col-xs-3 control-label">生日：</label>
            <div class="col-md-3 col-xs-2">
            <input name="birthdate" type="date" class="form-control" id="birthdate"  placeholder="生日">
            </div>
          </div>
          
          <div class="form-group">
            <label class="col-md-2 col-xs-3 control-label" for="hobby">爱好：</label>
            <div class="col-md-3 col-xs-2">
            <label class="radio-inline">
              <input type="checkbox" name="hobby[]" value="旅游">旅游
              <input type="checkbox" name="hobby[]" value="登山">登山
              <input type="checkbox" name="hobby[]" value="健身">健身
              <input type="checkbox" name="hobby[]" value="上网">上网
              <input type="checkbox" name="hobby[]" value="游泳">游泳
            </label>
            </div>

          </div>
          <div class="form-group">
            <label class="col-md-2 col-xs-3 control-label" for="degree">学历:</label>
            <div class="col-md-3 col-xs-2">
              <select name="degree" class="form-control">
                <option value="0">请选择</option>
                <option value="1">高中</option> 
                <option value="2">大学</option>
                <option value="3">研究生</option>  
                <option value="4">博士生</option>
              </select>
            </div>
          </div>

          <div class="form-group">
            <label class="col-md-2 col-xs-3 control-label" for="intro">自我介绍：</label>
            <div class="col-md-3 col-xs-2">
              <textarea name="intro" cols="40" rows="5"></textarea>
            </div>
          </div>
          
          <div class="form-group">
            <label class="col-md-2 col-xs-3 control-label" for="pic">头像：</label>
            <div class="col-md-3 col-xs-2">
              <input name="pic" type="file" id="pic">
            </div>
          </div>
      </div>   
    </div>
    <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
            <button type="submit" class="btn btn-primary">login</button>
          </div>

       <!--body里的东西结束--> 
      </div>  
      
    </div>
  </div>
</div></form> 



<!-- /.navbar -->


<div class="container">

    <div class="row row-offcanvas row-offcanvas-right">

        <div class="col-xs-12 col-sm-9">


            <div class="row">
            <?php foreach ($getTypeById as $key)  ?>

                <div class="col-xs-12 col-lg-12 mlist text-center">
                    <h2><?php echo $key['typename'];  ?></h2>
                    <ul class="list-inline row text-center">
                    <?php   foreach ($getVideoByTid as $one) {
                     echo '<li class="col-xs-6 col-lg-3"><img src="Upload/'.$one['pic'].'" class="responsive img-thumbnail"/>
                            <p>'.$one['name'].'</a>
                            </p></li>';
                    } ?>
                       

                    </ul>
                    <nav class="text-center">
                        <ul class="pagination">
                            <li>
                                <a href="#" aria-label="Previous">
                                    <span aria-hidden="true">&laquo;</span>
                                </a>
                            </li>
                            <li><a href="#">1</a></li>
                            <li><a href="#">2</a></li>
                            <li><a href="#">3</a></li>
                            <li><a href="#">4</a></li>
                            <li><a href="#">5</a></li>
                            <li>
                                <a href="#" aria-label="Next">
                                    <span aria-hidden="true">&raquo;</span>
                                </a>
                            </li>
                        </ul>
                    </nav>


                </div>
                <!--/.col-xs-6.col-lg-4-->

            </div>
            <!--/row-->
        </div>
        <!--/.col-xs-12.col-sm-9-->

        <div class="col-xs-6 col-sm-3 sidebar-offcanvas" id="sidebar">
            <div class="list-group text-center" >
                <h2 style="color:white;">点击排行</h2>
                <ul class="list-inline row text-center">
                <?php 
                foreach ($getVideoByHits as $row) {
                    echo '<li class="col-xs-12 col-lg-6"><img src="Upload/'.$row['pic'].'" class="responsive img-thumbnail"/>

                        <p><a href="index.php?c=show&m=index&id='.$row['id'].'">'.$row['name'].'</a>
                        </p></li>';


                    
                }




                 ?>


                   <!--  <li class="col-xs-12 col-lg-6">
                        <img src="assets/images/img1.jpg" class="responsive img-thumbnail"/>

                        <p><a href="show.html">视频标题</a>
                        </p>
                    </li>
                    <li class="col-xs-12 col-lg-6">
                        <img src="assets/images/img1.jpg" class="responsive img-thumbnail"/>

                        <p><a href="show.html">视频标题</a>
                        </p>
                    </li> -->

                </ul>
            </div>

        </div>
        <!--/.sidebar-offcanvas-->
    </div>
    <!--/row-->

    

</div>
<!--/.container-->
<hr>

    <footer>
        <p>&copy; Company 2014</p>
    </footer>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="Home/View/assets/js/jquery.min.js"></script>
<script src="Home/View/assets/js/bootstrap.min.js"></script>

<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="Home/View/assets/js/ie10-viewport-bug-workaround.js"></script>

<script src="offcanvas.js"></script>
</body>
</html>
